@extends('member.member')

@section('title', '我的社区')

@section('rightcontainer')
<div class="my_question member-container">
	<div class='ent_zhph ent3'>
		<ul class="mem_cate clearfix">
			<li class='firt-li'>排序方法:</li>
			<li>
    			<a href='#'><div class='ent-hover'>时间</div></a>
  			</li>
			<li>|</li>
			<li>
    			<a href='#'><div class='ent-hover'>浏览量</div></a>
  			</li>
			<li>|</li>
			<li>
    			<a href='#'><div class='ent-hover'>评论星级</div></a>
 			</li>
		</ul>
	</div>
	@foreach($question as $key=>$que)
	<div class="mem_cont mt-10 @if($key>0) bodertop @endif" id="news_{{$que->id}}">
		<div class="l-h-30 mt-10 ml-10 clearfix">
			<span class="fl"><a href="{{url('/bbs/'.$que->qid)}}" class="ft-18 ft-w">{{$que->title}}</a></span>
			<span class="fl ml-20 ft-14 cor-5">by {{$que->username}}</span>
			<span class="fr">
				<a href="javascript:void(0)" onclick="delete_one('/member/collect/{{$que->id}}','{{$que->id}}','{{csrf_token()}}')">
				    <img src="{{ asset('/images/front//member/trash.png')}}">
				</a>
			</span>
		</div>
		<div class="l-h-30 ft-16 ml-10 clearfix">
			<span class="fl">{{$que->answer_count}}</span>
			<span class="fl cor-4">个回答</span>
			<span class="fl ml-20">{{$que->focus_count}}</span>
			<span class="fl cor-4">个关注</span>
            <span class="can_stu fr" style="cursor:ponter;" onclick="delete_one('/member/collect/{{$que->id}}?app=bbs','{{$que->id}}','{{csrf_token()}}')">取消关注</span>
		</div>
	</div>
	@endforeach
	<div class="paginate">{!! $question->render() !!} </div>
</div>
@stop

<!-- 底部块 -->
@section('footer')
    @parent
@stop

